package com.chenyue.cm.user.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 第三方机构申请
 *
 * </p>
 *
 * @author Lbx
 * @since 2021-10-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdThirdApply对象", description = "第三方机构申请")
public class JdThirdApply extends Model<JdThirdApply> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date ct;

    @ApiModelProperty(value = "审核状态0待审核1通过2未通过 ")
    private Integer checkState;

    @ApiModelProperty(value = "拒绝理由")
    private String refuseReason;

    @ApiModelProperty(value = "申请类型 1个人2企业")
    private Integer applyType;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
